package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TEMP_StockControl", catalog="Id")
public class TempStockControl extends BaseEntity<TempStockControl> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="code1", nameJava="code1", typeDataBase="varchar")
	private String code1;
	@YsField(nameDataBase="code2", nameJava="code2", typeDataBase="varchar")
	private String code2;
	@YsField(nameDataBase="code3", nameJava="code3", typeDataBase="varchar")
	private String code3;
	@YsField(nameDataBase="name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="name1", nameJava="name1", typeDataBase="varchar")
	private String name1;
	@YsField(nameDataBase="num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="num1", nameJava="num1", typeDataBase="int")
	private Integer num1;
	@YsField(nameDataBase="img", nameJava="img", typeDataBase="varchar")
	private String img;
	@YsField(nameDataBase="amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="amount1", nameJava="amount1", typeDataBase="decimal")
	private BigDecimal amount1;
	@YsField(nameDataBase="amount2", nameJava="amount2", typeDataBase="decimal")
	private BigDecimal amount2;
	@YsField(nameDataBase="amount3", nameJava="amount3", typeDataBase="decimal")
	private BigDecimal amount3;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TempStockControl setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TempStockControl setCode(String code) {
		this.code = code;
		return this;
	}
	public String getCode1() {
		return code1;
	}
	public TempStockControl setCode1(String code1) {
		this.code1 = code1;
		return this;
	}
	public String getCode2() {
		return code2;
	}
	public TempStockControl setCode2(String code2) {
		this.code2 = code2;
		return this;
	}
	public String getCode3() {
		return code3;
	}
	public TempStockControl setCode3(String code3) {
		this.code3 = code3;
		return this;
	}
	public String getName() {
		return name;
	}
	public TempStockControl setName(String name) {
		this.name = name;
		return this;
	}
	public String getName1() {
		return name1;
	}
	public TempStockControl setName1(String name1) {
		this.name1 = name1;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TempStockControl setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getNum1() {
		return num1;
	}
	public TempStockControl setNum1(Integer num1) {
		this.num1 = num1;
		return this;
	}
	public String getImg() {
		return img;
	}
	public TempStockControl setImg(String img) {
		this.img = img;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TempStockControl setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public BigDecimal getAmount1() {
		return amount1;
	}
	public TempStockControl setAmount1(BigDecimal amount1) {
		this.amount1 = amount1;
		return this;
	}
	public BigDecimal getAmount2() {
		return amount2;
	}
	public TempStockControl setAmount2(BigDecimal amount2) {
		this.amount2 = amount2;
		return this;
	}
	public BigDecimal getAmount3() {
		return amount3;
	}
	public TempStockControl setAmount3(BigDecimal amount3) {
		this.amount3 = amount3;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TempStockControl setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TempStockControl setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TempStockControl setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TempStockControl tempStockControl(
		String code,
		String code1,
		String code2,
		String code3,
		String name,
		String name1,
		Integer num,
		Integer num1,
		String img,
		BigDecimal amount,
		BigDecimal amount1,
		BigDecimal amount2,
		BigDecimal amount3,
		Integer status
			) {
		TempStockControl entity = new TempStockControl();
		entity.setCode(code);
		entity.setCode1(code1);
		entity.setCode2(code2);
		entity.setCode3(code3);
		entity.setName(name);
		entity.setName1(name1);
		entity.setNum(num);
		entity.setNum1(num1);
		entity.setImg(img);
		entity.setAmount(amount);
		entity.setAmount1(amount1);
		entity.setAmount2(amount2);
		entity.setAmount3(amount3);
		entity.setStatus(status);
		return entity;
	}
}